package com.woniu.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
//读取yaml配置文件中的以urls开头的配置
@ConfigurationProperties(prefix = "urls")
public class AuthenUrlsProperties {

    /**
     * 用户端需要认证的url
     */
    private List<String> userUrls;

    /**
     * 公共的需要放行的url
     */
    private List<String> baseUrls;

    /**
     * 平台端需要放行的url
     */
    private List<String> adminUrls;

    /**
     * 教练端需要放行的url
     */
    private List<String> coachUrls;

    /**
     * 场馆端需要放行的url
     */
    private List<String> gymUrls;

}
